<?php

class Customer extends CI_Controller
{
    public function __construct()
    {
        parent::__construct();
        $this->load->helper('url');
        $this->load->model('customers_model');
        
    }
    
    public function index()
    {
        $data['page_name'] = 'KH';
        //redirect('customer/index',"location");
        $data['customers'] = $this->customers_model->load();
        $this->load->view('templates/header',$data);
        $this->load->view('customer/index',$data);
        $this->load->view('templates/footer');
    }
    
    public function add()
    {
        $data['page_name'] = 'KH';
        $this->load->view('templates/edit_header',$data);
        $this->load->view('customer/add',$data);
        $this->load->view('templates/edit_footer',$data);
    }
}
?>
